import request from '@/utils/request'

export function insert(data) {
    return request({
        url: '/good/insert',
        method: 'post',
        data
    })
}
export function getById(id) {
    return request({
        url: '/good/getById?id=' + id,
        method: 'get'
    })
}
export function updateById(data) {
    return request({
        url: '/good/updateById',
        method: 'post',
        data
    })
}

export function queryList(data) {
    return request({
        url: '/good/queryList',
        method: 'post',
        data
    })
}

export function logout() {
    return request({
        url: '/api/logout',
        method: 'post'
    })
}